import {createStore,applyMiddleware} from 'redux'
import rootReducer from './reducer/root.reducer'
import createSagaMiddleware from 'redux-saga'
import rootSage from './saga/root.saga'
const sagaMiddleware = createSagaMiddleware()

export const store = createStore(rootReducer,applyMiddleware(sagaMiddleware))

sagaMiddleware.run(rootSage)
